#include "function.h"
#include "Mult.h"
#include <iostream>

Mult::Mult(Function * a, Function * b)
	: a_(new Function(a)), b_(new Function(b)) 
{}

Mult::~Mult(){
	delete a_;
	delete b_;
}

double Mult::value (double x)	{
	return a_ -> value(x) * b_ -> value(x);
}

